package com.sskj.trafficcontrol.service.impl;

import com.sskj.trafficcontrol.dao.UserIntegralDao;
import com.sskj.trafficcontrol.service.UserIntegralService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "userIntegralService")
public class UserIntegralServiceImpl implements UserIntegralService {

    @Autowired
    private UserIntegralDao userIntegralDao;

    @Override
    public void updateUserIntegral(String openid) {
        userIntegralDao.updateUserIntegral(openid);
    }


    @Override
    public int getTotalIntegral(String open_id) {
        return userIntegralDao.getTotalIntegral(open_id);
    }
}
